package com.hgw.Demo02_adapterPattern.examples;

/**
 * Data time:2021/12/14 11:03
 * StudentID:2019112118
 * Author:hgw
 * Description: 测试类
 */
public class Client {

    public static void main(String[] args) {
        CarController car;
        car = new PoliceCarAdapter(new PoliceSound(), new PoliceLamp());
        car.move();
        car.phonate();
        car.twinkle();
    }

}
